
<%--
  Created by IntelliJ IDEA.
  User: 86137
  Date: 2021/8/1
  Time: 11:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>index</title>
</head>
<body>
        <c:if test="${not empty user}">
        <span>Welcome to you:&nbsp;${user.name}</span><br>
<a href="${pageContext.request.contextPath}/userServlet?method=findAll">User List</a><br>
        </c:if>
        <%--判断如果没有登录就要登录--%>
        <c:if test="${empty user}">
<a href="${pageContext.request.contextPath}/login.jsp">login</a>
        </c:if>
</body>
</html>
